package com.pateo.retail.canal.model;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.persistence.Column;
import java.util.ArrayList;
import java.util.List;

@Data
public class LabelCustomer {

    @Column(name = "tenant_code")
    private String tenant_code;
    
    @Column(name = "customer_sid")
    private Long customer_id;

    // 这里情况特殊因为之前es存的是字符串，所以这里兼容一下
    @JSONField(serialize = false)
    @Column(name = "label_value_sid")
    private String label_value_sid;

    @JSONField(serialize = false)
    @Column(name = "label_value_name")
    private String label_value_name;

    // 这里情况特殊因为之前es存的是字符串，所以这里兼容一下
    private List<String> label_id_list = new ArrayList<>();

    private List<String> label_value_list = new ArrayList<>();

}
